/*
 * @Author: 星孑
 * @Date: 2022-04-12 16:22:27
 * @LastEditors: 星孑
 * @LastEditTime: 2022-04-12 16:24:40
 * @FilePath: /vue-template-web/src/utils/auth.js
 * @Description: 通用
 */
import { setCookie, getCookie, removeCookie } from 'xj-tools'

const TokenName = 'Token'

export const getToken = () => {
  return getCookie(TokenName)
}

export const setToken = (token) => {
  setCookie(TokenName, token)
}

export const removeToken = () => {
  removeCookie(TokenName)
}

